package com.ifacebox.arcsoft.face.model;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Arrays;

/**
 * @author znn
 */
public class FaceCompare {
    private double score;
    @JsonProperty("score_limit")
    private double scoreLimit;
    private FacePosition[] face;

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public double getScoreLimit() {
        return scoreLimit;
    }

    public void setScoreLimit(double scoreLimit) {
        this.scoreLimit = scoreLimit;
    }

    public FacePosition[] getFace() {
        return face;
    }

    public void setFace(FacePosition[] face) {
        this.face = face;
    }

    @Override
    public String toString() {
        return String.format("{score=%f,score_limit=%f,face=%s}", score, scoreLimit, ((face != null) ? Arrays.asList(face) : "[]"));
    }
}
